/**
 * Created by Administrator on 2015/5/27.
 */

var settings = require('../settings');
var MongoClient = require('mongodb').MongoClient;

console.log(settings.url);
var DB = function () {
    this.connect = function (callback) {

        MongoClient.connect(settings.url, function (err, db) {
            return callback(err, db);
        })
    }
}

module.exports = new DB();
